package com.htzz.collection.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Data
@ApiModel(value = "状态接入格式类",description = "状态接入的格式")
public class CollectionStateDataDto{

//    private static final long serialVersionUID = 2046269308446055862L;

//    @NotNull
//    @ApiModelProperty(value = "网关id")
//    private String iot;
//
//    @ApiModelProperty(value = "accesskey")
//    private String accesskey;

    @NotEmpty
    @ApiModelProperty(value = "状态数据",example = "[{\"devId\":\"sn19990111\",\"v\":1000,\"t\":1630457359000}]")
    private List<Map<String,Object>> data = new ArrayList<>();

}
